package com.ctshk.rpc.ship.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 船票信息req
 * </p>
 *
 * @author 刘蕾
 * @since 2021年03月08日
 */
@Data
@ApiModel(value = "ShipZJProductApiReq对象", description = "船票产品信息PageReq")
public class ShipZJProductApiReq implements Serializable {

    private static final long serialVersionUID = 1L;


    @NotNull(message = "出发时间不能为空")
    @ApiModelProperty(value = "出发时间")
    private LocalDate startDate;

    @NotNull(message = "返程时间不能为空")
    @ApiModelProperty(value = "出发时间")
    private LocalDate backDate;

    @NotNull(message = "出发地code不能为空")
    @ApiModelProperty(value = "出发地id")
    private String depPlaceCode;

    @NotNull(message = "到达地code不能为空")
    @ApiModelProperty(value = "到达地id")
    private String arrPlaceCode;

    @NotNull(message = "返程出发地code不能为空")
    @ApiModelProperty(value = "出发地id")
    private String backDepPlaceCode;

    @NotNull(message = "返程到达地code不能为空")
    @ApiModelProperty(value = "到达地id")
    private String backArrPlaceCode;


}
